package com.wzx.admin.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wzx.admin.common.BasePojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;

/**
 * @author wzx
 * @version 1.0
 * @date 2023/5/1 - 12:37
 * @description 标题
 */
@Data
@TableName("t_admin_user")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "AdminUser", description = "管理员表")
public class AdminUser extends BasePojo {
    @TableId(value = "userId", type = IdType.AUTO)
    @ApiModelProperty(notes = "主键id", required = true)
    private Long userId;

    @TableField("username")
    @ApiModelProperty(value = "用户名称")
    private String username;

    @TableField("nickname")
    @ApiModelProperty(value = "昵称")
    private String nickname;

    @TableField("phone")
    @ApiModelProperty(value = "用户手机号")
    private String phone;

    @TableField("salt")
    @ApiModelProperty(value = "盐值")
    private String salt;

    @NotEmpty(message = "密码为空！")
    @TableField("password")
    @ApiModelProperty(value = "密码")
    private String password;

    @TableField("gender")
    @ApiModelProperty(value = "性别")
    private Integer gender;

    @TableField("address")
    @ApiModelProperty(value = "地址")
    private String address;

    @TableField("head")
    @ApiModelProperty(value = "头像")
    private String head;

    @TableField("lastlogintime")
    @ApiModelProperty(value = "最后登录时间")
    private String lastlogintime;

    @TableField("birthday")
    @ApiModelProperty(value = "出生日期")
    private String birthday;

    /*@TableField("roleId")
    @ApiModelProperty(value = "身份id")
    private Integer roleId;*/

    @TableField("email")
    @ApiModelProperty(value = "邮件")
    private Integer email;

    @TableField("authentication")
    @ApiModelProperty(value = "是否实名认证（0，未实名；1，已实名）")
    private String authentication;

    @TableField("card")
    @ApiModelProperty(value = "证件号")
    private String card;

    @TableField("idName")
    @ApiModelProperty(value = "证件名称")
    private String idName;

    @TableField("identityLevel")
    @ApiModelProperty(value = "身份级别")
    private String identityLevel;
}
